//
//  YWReloadView.m
//  TZKB
//
//  Created by yellow on 2017/6/20.
//  Copyright © 2017年 TZKB. All rights reserved.
//

#import "YWReloadView.h"




@interface YWReloadView ()

- (IBAction)reloadClick;

@property (weak, nonatomic) IBOutlet UIButton *reloadBtn;


@end

@implementation YWReloadView

-(void)awakeFromNib{

    [super awakeFromNib];
    
    self.reloadBtn.layer.cornerRadius = 2;

}

+(instancetype)reloadView{
    
    return [[NSBundle mainBundle] loadNibNamed:@"YWReloadView" owner:nil options:nil].lastObject;
}


- (IBAction)reloadClick {
    
    if ([self.delegate respondsToSelector:@selector(didClickreloadBtnWithReloadView:)]) {
        [self.delegate didClickreloadBtnWithReloadView:self];
    }
}
@end
